export const state = () => {
  return {
    isMobile: false,
    scrollTop: 0
  }
}

export const getters = {
  scrollTop: state => state.scrollTop
}

export const mutations = {
  // 是不是手机版
  SET_ISMOBILE (state, data) {
    state.isMobile = data
  },
  // 指哪打哪～～ 自定义滚动位置
  SET_SCROLLTOP (state, data) {
    state.scrollTop = data
  }
}